# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 258 Spider Mine (terran\Spider.grp)
.headerstart
IsId          	87
Type          	26
Init          	SpiderMineInit
Death         	SpiderMineDeath
GndAttkInit   	[NONE]
AirAttkInit   	[NONE]
Unused1       	[NONE]
GndAttkRpt    	[NONE]
AirAttkRpt    	[NONE]
CastSpell     	[NONE]
GndAttkToIdle 	[NONE]
AirAttkToIdle 	[NONE]
Unused2       	[NONE]
Walking       	SpiderMineWalking
WalkingToIdle 	SpiderMineWalkingToIdle
SpecialState1 	SpiderMineSpecialState1
SpecialState2 	[NONE]
AlmostBuilt   	[NONE]
Built         	[NONE]
Landing       	[NONE]
LiftOff       	[NONE]
IsWorking     	[NONE]
WorkingToIdle 	[NONE]
WarpIn        	[NONE]
Unused3       	[NONE]
StarEditInit  	[NONE]
Disable       	[NONE]
Burrow        	SpiderMineBurrow
UnBurrow      	SpiderMineUnBurrow
Enable        	[NONE]
.headerend
# ----------------------------------------------------------------------------- #

SpiderMineInit:
	imgul             	259 0 0	# Spider Mine Shadow (terran\tsmShad.grp)
SpiderMineWalkingToIdle:
	playfram          	0x00	# Frame set 0
	goto              	SpiderMineLocal00

SpiderMineLocal00:
	wait              	125 
	goto              	SpiderMineLocal00

SpiderMineDeath:
#	imgol             	429 0 0	# Spider Mine Death (thingy\tmnExplo.grp)
	playfram          	12	##
	wait			1	##
	playfram          	13	##
	wait              	1	##
	playfram		14	##
	wait			1	##
	playfram          	15	##
	wait			1	##
	playfram          	16	##
	wait              	1	##
	playfram		17	##
	wait			1	##
	playfram          	18	##
	wait			1	##
	playfram          	19	##
	wait              	1	##
	playfram		20	##
	wait			1	##
	playfram          	21	##
	wait              	1
	end

SpiderMineWalking:
	playsnd           	355	# Terran\VULTURE\TVuMin00.WAV
	move              	16 
	wait              	1 
	playfram          	0x00	# Frame set 0
	move              	16 
	wait              	1 
	playfram          	1	# Frame set 0, direction 1
	move              	16 
	wait              	1 
	playfram          	2	# Frame set 0, direction 2
	move              	16 
	wait              	1 
	playfram          	3	# Frame set 0, direction 3
	move              	16 
	wait              	1 
	playfram          	4	# Frame set 0, direction 4
	move              	16 
	wait              	1 
	playfram          	5	# Frame set 0, direction 5
	move              	16 
	wait              	1 
	playfram          	6	# Frame set 0, direction 6
	move              	16 
	wait              	1 
	playfram          	7	# Frame set 0, direction 7
	goto              	SpiderMineWalking

SpiderMineSpecialState1:
	castspell
	sigorder          	1 
	imgol             	429 0 0	## Spider Mine Death (thingy\tmnExplo.grp)
	goto              	SpiderMineLocal00

SpiderMineBurrow:
	nobrkcodestart
	imgol             	423 0 0	# Burrowing Dust (thingy\bDust.grp)
	playsnd           	354	# Terran\VULTURE\TVuMin01.WAV
	playfram          	8	# Frame set 0, direction 8
	wait              	1 
	playfram          	9	# Frame set 0, direction 9
	wait              	1 
	playfram          	10	# Frame set 0, direction 10
	wait              	1 
	playfram          	11	# Frame set 0, direction 11
	wait              	1 
	sigorder          	4 
	nobrkcodeend
	goto              	SpiderMineLocal00

SpiderMineUnBurrow:
	nobrkcodestart
	imgul             	423 0 0	# Burrowing Dust (thingy\bDust.grp)
	playsnd           	354	# Terran\VULTURE\TVuMin01.WAV
	playfram          	10	# Frame set 0, direction 10
	wait              	1 
	playfram          	9	# Frame set 0, direction 9
	wait              	1 
	playfram          	8	# Frame set 0, direction 8
	wait              	1 
	playfram          	0x00	# Frame set 0
	sigorder          	4 
	nobrkcodeend
	goto              	SpiderMineWalkingToIdle

# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 429 Spider Mine Death (thingy\tmnExplo.grp)
.headerstart
IsId          	280
Type          	0
Init          	SpiderMineExplosionInit
Death         	SpiderMineExplosionDeath	## [NONE]
.headerend
# ----------------------------------------------------------------------------- #

SpiderMineExplosionInit:
	wait			125		##
	goto			SpiderMineExplosionInit	##

SpiderMineExplosionDeath:			##
	playsnd           	10	# Misc\Explo1.wav
	playfram          	0x00	# Frame set 0
	wait              	1 
	playfram          	1	# Frame set 0, direction 1
	wait              	1 
	playfram          	2	# Frame set 0, direction 2
	wait              	1 
	playfram          	3	# Frame set 0, direction 3
	wait              	1 
	playfram          	4	# Frame set 0, direction 4
	wait              	1 
	playfram          	5	# Frame set 0, direction 5
	wait              	1 
	playfram          	6	# Frame set 0, direction 6
	wait              	1 
	playfram          	7	# Frame set 0, direction 7
	wait              	1 
	playfram          	8	# Frame set 0, direction 8
	wait              	1 
	playfram          	9	# Frame set 0, direction 9
	wait              	1 
	end

# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 147 Scarab (protoss\sapper.grp)
.headerstart
IsId          	160
Type          	13
Init          	ScarabInit
Death         	ScarabDeath
GndAttkInit   	[NONE]
AirAttkInit   	[NONE]
Unused1       	[NONE]
GndAttkRpt    	[NONE]
AirAttkRpt    	[NONE]
CastSpell     	[NONE]
GndAttkToIdle 	[NONE]
AirAttkToIdle 	[NONE]
Unused2       	[NONE]
Walking       	ScarabWalking
WalkingToIdle 	ScarabInit
SpecialState1 	ScarabSpecialState1
.headerend
# ----------------------------------------------------------------------------- #

ScarabInit:
	playfram          	0x00	# Frame set 0
	goto              	SpiderMineLocal00

ScarabDeath:
#	imgol             	444 0 0	# Scarab Hit (thingy\psaExplo.grp)
	playfram          	0x11	##
	wait			1	##
	playfram          	0x22	##
	wait              	1	##
	playfram		0x33	##
	wait			1	##
	playfram          	0x44	##
	wait			1	##
	playfram          	0x55	##
	wait              	1	##
	playfram		0x66	##
	wait			1	##
	playfram          	0x77	##
	wait			1	##
	playfram          	0x88	##
	wait              	1	##
	playfram		0x99	##
	wait			1	##
	playfram          	0xaa	##
	wait              	1 
	end

ScarabWalking:
	setflspeed        	2048 
	move              	16 
	sprol             	373 0 0	# Scarab/Anti-Matter Missile Overlay (thingy\HKTrail.grp)
	wait              	1 
	goto              	ScarabWalking

ScarabSpecialState1:
	useweapon         	82	# Scarab (Scarab)
	sigorder          	1 
	imgol             	444 0 0	## Scarab Hit (thingy\psaExplo.grp)
	goto              	SpiderMineLocal00

# ----------------------------------------------------------------------------- #
# This header is used by images.dat entries:
# 444 Scarab Hit (thingy\psaExplo.grp)
.headerstart
IsId          	287
Type          	1
Init          	ScarabHitInit
Death         	ScarabHitDeath
.headerend
# ----------------------------------------------------------------------------- #

ScarabHitInit:
	wait			125	##
	goto			ScarabHitInit	##

ScarabHitDeath:				##
	playsnd           	100	# Bullet\psaHit00.wav
	playfram          	0x00	# Frame set 0
	wait              	1 
	playfram          	1	# Frame set 0, direction 1
	wait              	1 
	playfram          	2	# Frame set 0, direction 2
	wait              	1 
	playfram          	3	# Frame set 0, direction 3
	wait              	1 
	playfram          	4	# Frame set 0, direction 4
	wait              	1 
	playfram          	5	# Frame set 0, direction 5
	wait              	1 
	playfram          	6	# Frame set 0, direction 6
	wait              	1 
	playfram          	7	# Frame set 0, direction 7
	wait              	1 
	playfram          	8	# Frame set 0, direction 8
	wait              	1 
	playfram          	9	# Frame set 0, direction 9
	wait              	1 
	end

#ScarabHitDeath:
#	wait              	1 
#	end